<?php

namespace app\controllers;
use yii\web\Controller;
class BaseController extends Controller
{
    public function render($view, $params = []) {
        $urlParams = ['urlParams' => (object) \Yii::$app->request->getQueryParams()];
        $tpldata = array_merge(empty($params["output"])?[]:$params["output"], $urlParams);
        \Yii::$app->view->params['tpldata'] = (object) $tpldata;
        return parent::render($view, $params);
    }
}
